package com.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.model.sys.SysUserRole;

public interface SysUserRoleMapper {
	int deleteByPrimaryKey(@Param("userid") String userid,
			@Param("roleid") String roleid);

	int deleteByUserid(@Param("userid") String userid);

	int deleteByRoleid(@Param("roleid") String roleid);

	int insert(SysUserRole record);

	List<SysUserRole> selectAll();

	List<SysUserRole> selectAllByUserid(String userid);
}